const dpProfessorMod = (request) => {
  return {
    view_dpProfessor_page(query = {}) {
      return request('/bussiness/dpProfessor/page', {
        method: 'post',
        data: query
      })
    },
    view_dpProfessor_edit(query = {}) {
      return request('/bussiness/dpProfessor/edit', {
        method: 'post',
        data: query
      })
    },
    // 导出
    view_dpProfessor_export(query = {}) {
      return request('/bussiness/dpProfessor/export', {
        method: 'post',
        data: query
      })
    },
    // 导入
    view_dpProfessor_import(query = {}, onUploadProgress) {
      return request('/bussiness/dpProfessor/import', {
        method: 'post',
        headers: {
          'Content-Type': 'multipart/form-data; boundary=something'
        },
        onUploadProgress,
        data: query
      })
    },
    // 导入模板下载
    view_dpProfessor_downloadTemplate(query = {}) {
      return request('/bussiness/dpProfessor/downloadTemplate', {
        method: 'post',
        responseType: 'blob',
        data: query
      })
    },
    // 采集
    view_dpProfessor_gather(query = {}) {
      return request('/bussiness/dpProfessor/gather', {
        method: 'post',
        data: query
      })
    },
    // 删除
    view_dpProfessor_del(ids) {
      return request('/bussiness/dpProfessor/del', {
        method: 'post',
        data: {
          batchesDel: ids
        }
      })
    },
    //详情
    view_dpProfessor_view(id) {
      return request(`/bussiness/dpProfessor/${id}`, {
        method: 'get'
      })
    },
    // 全字段查询 // 反向查询
    view_dpProfessor_search(query = {}) {
      return request('/bussiness/dpProfessor/search', {
        method: 'post',
        data: query
      })
    },
  }
}

export default ({ request }: any) => ({
  ...dpProfessorMod(request)
})
